@import "../variables";

.boards-list {
  min-height: 475px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  .right.floated {
    float: right;
  }
  .board {
    width: 25%;
    height: 100%;
    max-width: 400px;
    min-width: 300px;
    display: inline-block;
    padding-right: 1rem;
    white-space: normal;
    vertical-align: top;

    &:last-child {
      padding-right: 0;
    }
  }
  .board-inner {
    height: 100%;
    font-size: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    position: relative;
    .dimmer {
      z-index: 5;
    }
  }
  .board-title {
    position: relative;
    margin: 0;
    padding: 16px;
    font-size: 1em;
    border-bottom: 1px solid #e5e5e5;
  }
  .board-avatar.avatar.image {
    width: 24px;
    height: 24px;
    vertical-align: text-top;
    margin: -2px 0.5em -4px 0;
  }
  .board-list-wrapper {
    height: calc(100% - 55px);
    background: #eee;
    position: relative;
  }
  .board-list {
    margin: 0;
    padding: 5px;
    height: 100%;
    list-style: none;
    min-height: 320px;
    background: #eee;
    overflow-x: hidden;
    overflow-y: auto;

    .card {
      width: 100%;
      margin: 0 0 0.5em 0;

      .extra.content {
        padding-right: 3em;
      }
    }
    .card-loading {
      position: relative;
      pointer-events: none;

      &::before {
        content : '';
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        position: absolute;
        background: rgba(#fff, 0.8);
      }
    }
    .button-wrapper {
      padding: 10px;
      text-align: center;
    }
    .card[draggable="true"], .card-draggable {
      cursor: move;
      cursor: -webkit-grab;

      &:active {
        cursor: -webkit-grabbing;
      }
    }
    .card:hover {
      box-shadow: 0 5px 10px #ddd;
    }
    .card-dragover {
      position: relative;

      &::before {
        left: 0;
        top: -4px;
        width: 100%;
        content: '';
        position: absolute;
        border-bottom: 2px solid $blue;
      }
    }
    .board-tip {
      color: $text-muted;
      padding: 10px 0;
      text-align: center;
    }
    .card-number,
    .card-author {
      margin-right: 0.6em;
    }
    .card-comments {
      font-size: smaller;
    }
    .labels {
      font-size: smaller;

      .label {
        padding: 2px 4px;
        margin-right: 4px;
        border-radius: 4px;
        display: inline-block;
        line-height: initial;
        margin: 0.4em 0.4em 0 0;
      }
    }
    .assignee,
    .state {
      right: 1em;
      bottom: 1em;
      position: absolute;
    }
    .assignee .avatar {
      width: 24px;
      height: 24px;
      margin-bottom: -4px;
    }
    .state {
      font-size: 16px;
    }
    .user-label {
      margin-left: -3px;
      margin-right: 4px;
    }
  }
  .board-actions.board-actions {
    margin: -7px 0 0 1rem;
  }
  .board-header.has-border {
    border-top: 3px solid;
  }
  .issues-count-badge {
    font-weight: normal;
    font-size: 1rem;
  }
}
.board-blur-message {
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  text-align: center;
  position: absolute;
  pointer-events: none;
  background-color: #fff;
  transition: opacity .2s;

  .icon {
    font-size: 32px;
    color: #ccc;
  }
}
.board-blur .board-blur-message {
  opacity: 1;
  pointer-events: auto;
}
.boards-sortable {
  .board-title {
    cursor: move;
  }
}
